package xxl.robotlegs.extensions.enhancedlogging 
{
	import xxl.robotlegs.extensions.enhancedlogging.impl.LoggerProvider;
	import xxl.robotlegs.framework.api.IContext;
	import xxl.robotlegs.framework.api.IExtension;
	import xxl.robotlegs.framework.api.ILogger;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class InjectableLoggerExtension implements IExtension 
	{
		
		public function InjectableLoggerExtension() 
		{
			
		}
		
		public function toString():String
		{
			return "InjectableLoggerExtension（简介：通过Inject可以获取一个以申请类为源的ILogger）";
		}
		
		/* INTERFACE xxl.robotlegs.framework.api.IExtension */
		
		public function extend(context:IContext):void 
		{
			context.injector.map(ILogger).toProvider(new LoggerProvider(context));
		}
		
	}

}